package graphical;

/**
 * @Author admin
 * @Date 2019/3/20 9:02
 */
public class Triangle extends Graphical {
    public Triangle(){

    }
    public Triangle(String name){
        super(name);
    }
    @Override
    void print(){
        System.out.println(name+"的面积是（a+b）/2");
    }
    public void isRinght(){
        System.out.println(name+"是等腰三角形");
    }
}
